<div class="modal-header">
    <button type="button" class="close" ng-click="$dismiss()">&times;</button>
    <h3 class="modal-title">文章编辑</h3>
</div>
<div class="modal-body">
    <div class="page-title">
        <div class="page-title-input">
            <input id="pageTitle" name="pageTitle" type="text" class="form-control page-title-input"
                   data-ng-model="page.title"
                   focus="true" placeholder="文章标题" autocomplete="off" maxlength="40"
                   required/>

            <div class="validation-error-message"
                 ng-show="pageForm.pageTitle.$error.required && pageForm.pageTitle.$dirty">
                文章标题不能为空
            </div>
        </div>
    </div>
    <div class="page-content-editor">
         <textarea id="pageContent" name="pageContent" rows="3"
                   class="form-control page-content-textarea"
                   data-ng-model="page.content"
                   focus="true"
                   simplemde='{spellChecker: false}'
                   placeholder="文章内容 | 支持Markdown"
                   required></textarea>
    </div>
</div>

<div class="modal-footer" ng-keydown="keyPress($event)">
    <button class="btn btn-primary" type="button" ng-click="savePage()"
            ng-disabled="pageForm.$invalid||isDisablePageSaveButton">{{pageSaveButtonText}}
    </button>
</div>
